<?php

session_start();
include ("functies.php");
weg_hier();

?>
<html>
	<head>
		<link rel="stylesheet" type="text/css" href="masterstijl.css" />
		<meta http-equiv="refresh" content="50">

	</head>
<body>
<h1>Leslijst tonen</h1>
<?php
$lessen = docentlessen($_SESSION['inlogcode']);
$wissel="twee";


foreach ($lessen as $lesnr) {
	$les=toon_vak($lesnr['lesid']);
	($wissel=="twee") ? $wissel="een" : $wissel="twee";
	print "<div class=\"$wissel\"><hr>";
	print "Les: <a href=\"tweedescherm.php?lesnr=$lesnr[lesid]\">$les[les]</a><br>";
	print "Moment: les $les[uur] op $les[dag]-$les[maand]-$les[jaar]<br>";
	print "<hr></div>";
	
}

	
	

?>

</body>
</html>